﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<CallMVC.Models.LoginModel>" %>

<asp:Content ID="calculationTitle" ContentPlaceHolderID="Title1"  runat="server">
    <%
      DBManager.Customer cust = ViewBag.Customer;
    %>
   <a href="<%: Url.Action("Calculation", "Home", new { customerId = cust.CustomerID })%>"><img src="/CalcApp/images/<%= cust.LogoLink %>"/></a>
</asp:Content>

<asp:Content ID="calculationContent" ContentPlaceHolderID="MainContent" runat="server">
    
    <% 
        using (Html.BeginForm()) 
        {
            DBManager.Customer customer = ViewBag.Customer;
            DBManager.Customer custStd = ViewBag.CustStd;
    %>
     
    <%
            if (customer.InfoPar1 != null)
            {
    %>
    <p>
        <%: customer.InfoPar1%>
    </p>
    <%
            }
    %>
     
    <%
            else
            {
    %>
    <p>
        <%: custStd.InfoPar1%>
    </p>
    <%
            }
    %>
    <%
            if (customer.InfoPar2 != null)
            {
    %>
    <p>
        <%: customer.InfoPar2%>
    </p>
    <%
            }
    %>
     
    <%
            else
            {
    %>
    <p>
        <%: custStd.InfoPar2%>
    </p>
    <%
            }
    %>
    <%
            if (customer.InfoPar3 != null)
            {
    %>
    <p>
        <%: customer.InfoPar3%>
    </p>
    <%
            }
    %>
     
    <%
            else
            {
    %>
    <p>
        <%: custStd.InfoPar3%>
    </p>
    <%
            }
    %>
    <%
            if (customer.InfoPar4 != null)
            {
    %>
    <p>
        <%: customer.InfoPar4%>
    </p>
    <%
            }
    %>
     
    <%
            else
            {
    %>
    <p>
        <%: custStd.InfoPar4%>
    </p>
    <%
            }
    %>
    <%
            if (customer.InfoPar5 != null)
            {
    %>
    <p>
        <%: customer.InfoPar5%>
    </p>
    <%
            }
    %>
     
    <%
            else
            {
    %>
    <p>
        <%: custStd.InfoPar5%>
    </p>
    <%
            }
    %>
    <%
            if (customer.InfoPar6 != null)
            {
    %>
    <p>
        <%: customer.InfoPar6%>
    </p>
    <%
            }
    %>
     
    <%
            else
            {
    %>
    <p>
        <%: custStd.InfoPar6%>
    </p>
    <%
            }
    %>
    <%
            if (customer.InfoPar7 != null)
            {
    %>
    <p>
        <%: customer.InfoPar7%>
    </p>
    <%
            }
    %>
     
    <%
            else
            {
    %>
    <p>
        <%: custStd.InfoPar7%>
    </p>
    <%
            }
    %>
    <%
            if (customer.Website != null && customer.WebsiteLinkText != null)
            {
    %>
    <a href="<%: customer.Website%>"><%: customer.WebsiteLinkText%></a>
    <%
            }
    %>
    <% 
        } 
    %>
    
</asp:Content>